package top.lishuoboy.lombok.annotation.tostring.bean;

import lombok.Setter;
import lombok.ToString;

/**
 * @author lishuoboy
 */

@Setter
@ToString(callSuper = true)
//@ToString(exclude = {"name"})   // 过时，排除的字段
//@ToString(of = {"name"})        // 过时，包含的字段们。考虑以后增加字段的影响
public class User extends ParentUser {

    private Integer id;
    @ToString.Include // 包含字段，没啥意义
    private String name;
    @ToString.Exclude // 不包含字段
    private Integer age;


}



